﻿@{
    Layout = null;
}

@model SimpleTaskManager.Domain.Entities.Task

@using SimpleTaskManager.WebUI.HtmlHelpers

<div>@{ Html.RenderAction("TaskStructure", new { id = Model.TaskID }); }</div>
<div id="task_header">
    <h2>@Model.Name (@Model.Progress.ToPercentage())</h2>
    <h3>DueDate: @Model.EndDate.ToString("yyyy-MM-dd")</h3>
</div>
    <nav id="task_menu">
        <ul>
            <li>@if (ViewBag.SelectedPage == 0) { <span class="task_menu_selected">Tasks</span> }
                 else{ @Html.ActionLink("Tasks", "Details", new { id = Model.TaskID}) }</li>
            <li>@if (ViewBag.SelectedPage == 1) { <span class="task_menu_selected">People</span> }
                 else{ @Html.ActionLink("People", "People", new { id = Model.TaskID}) }</li>
            <li>@if (ViewBag.SelectedPage == 2) { <span class="task_menu_selected">Reports</span> }
                 else{ @Html.ActionLink("Reports", "Reports", new { id = Model.TaskID}) }</li>
        </ul>
    </nav>

<div style="clear: both;" />

